package com.example.springbootdemo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**位置拓展类，记录经纬度 Geometry 对象，需要的参数太多，不方便前台传参
 * @author xuwangqi
 * @date 2021/5/24 15:22
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GeoPoint implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /**
     * 经度
     */
    private double longitude;
    /**
     * 纬度
     */
    private double latitude;

    @Override
    public String toString(){
        return "point("+longitude+" "+latitude+")";
    }
}
